/**
 * @ClassName StudentTest
 * @Description 测试类
 * @Author Li
 * @Date 2022/7/31 12:28
 * @ModifyDate 2022/7/31 12:28
 * @Version 1.0
 */
public class StudentTest {
    public static void main(String[] args) {
        // 无参构造使用
        Student stu1 = new Student();
        stu1.setName("古天乐");
        stu1.setAge(50);
        System.out.println(stu1.getName() + "今年" + stu1.getAge() + "岁！");
        // 全参构造使用
        Student stu2 = new Student("胡歌", 38);
        System.out.println(stu2.getName() + "今年" + stu2.getAge() + "岁！");
    }
}
